<?php
defined('BASEPATH') OR exit('No direct script access allowed');



class Article extends CI_Controller {

	public function index(){
		//$this->load->view('site/index');

		echo "demo/index";
	}

	public function detail($id){

//		$id = isset($_GET["id"]) ? intval($_GET["id"]) : 0;

		echo $id;


		echo '<pre>';
		print_r($this->uri->segment_array());

		echo "id=".$this->uri->segment(1)."<br>";


	}

	public function test($p1, $p2){
		echo $p1."<br>";
		echo $p2."<br>";

		echo '<pre>';
		print_r($this->uri->segment_array());
	}


}
